// MyAppointment.cpp

#include "MyAppointment.h"

// Default Constructor
MyAppointment::MyAppointment()
{
	
}

// Copy Constructor
MyAppointment::MyAppointment(MyAppointment & aMyAppointment)
{
	_FirstName = aMyAppointment._FirstName;
	_LastName = aMyAppointment._LastName;
	_Description = aMyAppointment._Description;
	_Date = aMyAppointment._Date;
	_Time = aMyAppointment._Time;
}

//Deconstructor
MyAppointment::~MyAppointment()
{

}

// OPERATOR OVERLOAD
	// = assignment operator
MyAppointment MyAppointment::operator= (const MyAppointment & aMyAppointment)
{
	_FirstName = aMyAppointment._FirstName;
	_LastName = aMyAppointment._LastName;
	_Description = aMyAppointment._Description;
	_Date = aMyAppointment._Date;
	_Time = aMyAppointment._Time;

	return *this;
}


// << Output stream operator
ostream & operator<< (ostream & os, MyAppointment & aMyAppointment)
{
	std::cout << aMyAppointment._FirstName << " " << aMyAppointment._LastName << "        " << aMyAppointment._Date << " at " << aMyAppointment._Time << "\n";
	std::cout << aMyAppointment._Description << "\n\n";
	return os;
}
